package com.yt.product.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.yt.product.models.bo.ShoppingCartSaveBO;
import com.yt.product.models.dto.ShoppingCartDTO;
import com.yt.product.models.vo.ShoppingCartAccountVO;
import com.yt.product.models.vo.ShoppingCartVO;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 购物车服务
 *
 * @author lvzeming
 * @Date 2025-08-22 15:52:56
 */
public interface IShoppingCartService extends IService<ShoppingCartDTO> {
    boolean add(ShoppingCartSaveBO saveBO);

    boolean saveCart(ShoppingCartSaveBO saveBO);

    boolean mergeCartList(List<ShoppingCartSaveBO> list);

    List<ShoppingCartVO> queryCartByUserId(Long userId);

    ShoppingCartAccountVO getAccountDetail(List<ShoppingCartSaveBO> list);
}
